package com.xiaoyg.lession01.chapter15;

/**
 * getId()方法，取得线程的唯一标示。
 */
public class Test {

    public static void main(String[] args) {
        Thread runThread = Thread.currentThread();
        System.out.println(runThread.getName()+" "+runThread.getId());
    }

}
